Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix r & d not working from Metro sometimes #47624

Closed
wants to merge 1 commit into from

Conversation

EdmondChuiHW
Copy link
Contributor

Summary:
Changelog:
[iOS][Fixed] - fix r & d not working from Metro sometimes

While investigating these bugs, I've come across some cases where r (Reload) & d (Open Dev Menu) not working in Metro.

This is because when we

  1. Start app without Metro
  2. Start Metro
  3. Reload from Dev Menu (rage shake)

RCTPackagerConnection did not get notified about the change in bundle URL. It'd stay "listening" to the commands from the local bundle instead of Metro
.

Differential Revision: D65973309

Summary:
Changelog:
[iOS][Fixed] - fix `r` & `d` not working from Metro sometimes

While investigating these bugs, I've come across some cases where `r` (Reload) & `d` (Open Dev Menu) not working in Metro.

* T206141946 / [WP: Reconnecting dev tools does not work after restarting the app](https://fb.workplace.com/groups/rn.debugger.feedback/posts/1107620434125533)
* T206754760 / [WP: Can't launch DevTools from Metro sometimes](https://fb.workplace.com/groups/rn.debugger.feedback/posts/1112235073664069/)

This is because when we
1. Start app without Metro
1. Start Metro
1. Reload from Dev Menu (rage shake)

`RCTPackagerConnection` did not get notified about the change in bundle URL. It'd stay "listening" to the commands from the local bundle instead of Metro
.

Differential Revision: D65973309
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Nov 14, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65973309

EdmondChuiHW added a commit to EdmondChuiHW/react-native that referenced this pull request Nov 15, 2024
Summary:

Changelog:
[iOS][Fixed] - fix `r` & `d` not working from Metro sometimes

While investigating these bugs, I've come across some cases where `r` (Reload) & `d` (Open Dev Menu) not working in Metro.

* T206141946 / [WP: Reconnecting dev tools does not work after restarting the app](https://fb.workplace.com/groups/rn.debugger.feedback/posts/1107620434125533)
* T206754760 / [WP: Can't launch DevTools from Metro sometimes](https://fb.workplace.com/groups/rn.debugger.feedback/posts/1112235073664069/)

This is because when we
1. Start app without Metro
1. Start Metro
1. Reload from Dev Menu (rage shake)

`RCTPackagerConnection` did not get notified about the change in bundle URL. It'd stay "listening" to the commands from the local bundle instead of Metro
.

Differential Revision: D65973309
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Nov 15, 2024
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 9a60038.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @EdmondChuiHW in 9a60038

When will my fix make it into a release? | How to file a pick request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants